home *** CD-ROM | disk | FTP | other *** search
- Path: gecm.com!usenet
- From: Richard Gilchrist <richard.gilchrist@gecm.com>
- Newsgroups: comp.lang.c
- Subject: Re: Memory deallocation and linked lists
- Date: 17 Apr 1996 14:05:08 GMT
- Organization: Not
- Message-ID: <4l2tqk$pt1@gcsin3.geccs.gecm.com>
- References: <4l1hpk$hk5@alice.walrus.com>
- NNTP-Posting-Host: esk1035.edinbr.gmds.gecm.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2 (Windows; I; 16bit)
-
- warrenj@walrus.com (Warren Johnson) wrote:
- >Greetings!
- >Let us suppose I have a singularly linked list. If i free up the first
- >node, will all of the rest of the nodes be freed up as well? Free
- >meaning, using the borland command free(). Do I have to free up each node
- >seperately? Something I've never actually known >:). Thanks in advance.
- >
- >--
- >Warren D. Johnson
- >CEO and Founder
- >Runtime Computing, Inc.
- >
-
- Warren,
-
- I can't remember what the borland command free() does exactly, but the UNIX c
- command free() requires you to must traverse the list and free each element of the
- list, and I don't think that the borland command will be much different from the
- UNIX free command.
-
-
- Rick
-
- --
- =====================================================================
- Richard Gilchrist | I do not speak for my employer
- ECAD Support |
- GMRDS, SilverKnowes , Edinburgh |
- richard.gilchrist@gecm.com |
- =====================================================================
-
-
-